<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let arr = [1,2,3,4]
        let arr1 = ['a','b',...arr,'c','d']
        let arr2 = [1,3,4,5,6,0,7]
        Object.assign(arr2,arr)//合并数组
        console.log(arr2);
        console.log(arr1);
        let [a,b,...c] = arr
        console.log(a,b,c);
    </script>
</body>
</html>